//
//  UIView+Extension.h
//  01-黑酷
//
//  Created by apple on 14-6-27.
//  Copyright (c) 2014年 heima. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface UIView (Extension)
@property (nonatomic, assign) CGFloat zq_x;
@property (nonatomic, assign) CGFloat zq_y;
@property (nonatomic, assign) CGFloat zq_width;
@property (nonatomic, assign) CGFloat zq_height;
@property (nonatomic, assign) CGSize  zq_size;
@property (nonatomic, assign) CGPoint zq_origin;
@property (nonatomic, assign) CGFloat zq_centerX;
@property (nonatomic, assign) CGFloat zq_centerY;


/**
 *  9.上 < Shortcut for frame.origin.y
 */
@property (nonatomic) CGFloat zq_top;

/**
 *  10.下 < Shortcut for frame.origin.y + frame.size.height
 */
@property (nonatomic) CGFloat zq_bottom;

/**
 *  11.左 < Shortcut for frame.origin.x.
 */
@property (nonatomic) CGFloat zq_left;

/**
 *  12.右 < Shortcut for frame.origin.x + frame.size.width
 */
@property (nonatomic) CGFloat zq_right;

- (void)addTarget:(id)target action:(SEL)action;

/**
 * 判断一个控件是否真正显示在主窗口
 */
- (BOOL)isShowingOnKeyWindow;

+ (instancetype)viewFromXib;
@end
